
 <!DOCTYPE html> 
 <html>
 <head>
 	<title>商品详情</title>
 	<meta name="keywords" content="" /> 
 	<meta name="description" content="" /> 
 	<meta name="viewport" content="width=device-width,user-scalable=no" /> 
 	<meta http-equiv="content-type" content="text/html;charset=utf-8" /> 
 	<link rel="stylesheet" type="text/css" href="<?php echo $this->config->item('public_url');?>/css/common.css"> 
 	<link rel="stylesheet" type="text/css" href="<?php echo $this->config->item('public_url');?>/css/swiper.min.css"> 
 	<link rel="stylesheet" type="text/css" href="<?php echo $this->config->item('public_url');?>/css/product_detail.css"></head>
 <body>
 	<!--  <div class="header">
 		<div class="back">
 			<a href=""></a>
 		</div>
 		商品详情
 		<div class="share">
 			<img src="<?php echo $this->config->item('public_url');?>/images/share.png" alt=""></div>
 	</div>-->
 	<div class="detail_pro">
 		<div class="swiper-container swiper-detail">
 			<div class="swiper-wrapper">
 			<?php if (!empty($img_slideshow)){
    			 foreach ($img_slideshow as $v):?>
 				<div class="swiper-slide">
 					<img src="<?php echo $v['img_url'];?>" alt=""></div>
 		    <?php endforeach;?>
			<?php }?>
 			</div>
 			<div class="swiper-pagination"></div>
 		</div>
 		<div class="detail_prodect">
 			<h1 class="detail_prodect_title"><?php echo $title;?><!--  &nbsp;<span style = 'color:red'>公测期，不发货。</span>--></h1>
 			<?php if($user_level != '0'){ ?>
 			
 			<p class="detail_prodect_zx">LV<?php echo $user_level;?>以上专享</p>
 			<?php }?>
 			<div class="detail_prodect_m">
 				<p class="detail_prodect_money">
 					<img src="<?php echo $this->config->item('public_url');?>/images/4_19.png" alt=""> 
 					<?php echo $npoint;?>
 					<!-- <span>¥<?php echo $price;?></span> -->
 				</p>
 				<span class="detail_prodect_yun">包邮</span>
 			</div>
 		</div>
 		<div class="detail_prodect_guige">
 			规格选择
 			<img src="<?php echo $this->config->item('public_url');?>/images/info.png" class="right_info" alt=""></div>
 		<div class="detail_prodect_xiangqing">
 			<h1>商品详情</h1>
 			<!--<span style = 'color:red'>7.1-7.10为公测期，在此期间n币商城仅供测试。不发货，消耗的n币会在7.10后返还。如有问题，请在“问题反馈”中告诉我们</span>-->
 			<div>
 				<?php echo $desc; ?>
 			</div>
 		</div>
 		<?php if ($process){?>
 		<div class="detail_prodect_xiangqing">
 			<h1>兑换流程</h1>
 			<!--<span style = 'color:red'>7.1-7.10为公测期，在此期间n币商城仅供测试。不发货，消耗的n币会在7.10后返还。如有问题，请在“问题反馈”中告诉我们</span>-->
 			<div>
 				<?php echo $process; ?>
 			</div>
 		</div>
 		<?php }?>
 		<?php if ($notice){?>
 		<div class="detail_prodect_xiangqing">
 			<h1>注意事项</h1>
 			<!--<span style = 'color:red'>7.1-7.10为公测期，在此期间n币商城仅供测试。不发货，消耗的n币会在7.10后返还。如有问题，请在“问题反馈”中告诉我们</span>-->
 			<div>
 				<?php echo $notice; ?>
 			</div>
 		</div>
 		<?php }?>
 		
 		<div class="footer footers"><a href="javascript:;">商品兑换</a></div>
 	</div>
 	<div class="detail_mask"></div>
 	<div class="detail_select">
 		<div class="detail_select_s">
 			<div class="detail_select_logo">
 				<img src="<?php echo $thumb_img;?>" alt=""></div>
 			<div class="detail_select_right">
 				<p class="detail_select_money">
 					<img src="<?php echo $this->config->item('public_url');?>/images/4_19.png" alt=""><?php echo $npoint;?></p>
 					<div class="detail_select_kc">库存<span id="kucun"></span>件</div>
 				<div class="detail_select_sx">
 					已选择：
 					<span class="detail_select_xinghao"></span>
 					<!-- <span class="detail_select_color">黑色</span> -->
 				</div>
 			</div>
 			<img src="<?php echo $this->config->item('public_url');?>/images/close.jpg" class="detail_select_close"></div>
 		<!-- <div class="detail_select_yanse">
 			<h1>颜色</h1>
 			<ul>
 				<li class="cur">黑色</li>
 				<li>黑色</li>
 				<li>黑色</li>
 				<li>黑色</li>
 				<li>黑色</li>
 				<li>黑色</li>
 				<li class="null">黑色</li>
 			</ul>
 		</div> -->
 		<div  class="detail_select_xh">
 		<?php if (!empty($attr)){?>
 			<h1>型号</h1>
 			<ul>
    			 <?php foreach ($attr as $v):?>
 				<li data-c="<?php echo $v['attr_id'];?>"><?php echo $v['attr_name'];?></li>
 		    <?php endforeach;?>
 			</ul>
		<?php }?>
 		</div>
 		<div  class="detail_select_number">
 			数量
 			<div class="numberinput">
 				<p class="reduce">-</p>
 				<input value="1" readonly="readonly" id="num" type="" name=""> 
 				<p class="add">+</p>
 			</div>
 		</div>
 		<div class="querenduihuan footer qrdh"><a href="javascript:;">商品兑换</a></div>
 	</div>
    <script type="text/javascript" src="<?php echo $this->config->item('public_url');?>/js/jquery-3.2.1.min.js"></script>
    <script type="text/javascript" src="<?php echo $this->config->item('public_url');?>/js/cookie.js"></script>
    <script type="text/javascript">
    	var kucun = "<?= site_url('Npoint_store/Product/prdouct_attr')?>";
    	var confirm_order = "<?= site_url('Npoint_store/Order/confirm_order')?>";
        var localhosthref = "<?= site_url('Npoint_store/Order/')?>";
        // var Login_url = "<?= site_url('Npoint_store/Login')?>"
        var det ={}
        det.sort = '<?php echo $sort;?>';
        det.privilege = '<?php echo $privilege;?>';
        det.limit_num = '<?php echo $limit_num;?>';
        det.uid = '<?php echo $uid;?>';
        det.limit_time = '<?php echo $limit_time;?>';
    </script>
    <script type="text/javascript" src="<?php echo $this->config->item('public_url');?>/js/common.js"></script>
 	<script type="text/javascript" src="<?php echo $this->config->item('public_url');?>/js/swiper.min.js"></script>
 	<script type="text/javascript" src="<?php echo $this->config->item('public_url');?>/js/product_detail.js"></script>
 </body>
 </html>